package com.lablzh.gdxy.repository.admin;

import com.lablzh.gdxy.entity.admin.Major;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MajorRepository extends JpaRepository<Major,Integer> {
    List<Major> findAllByCollege(String college);

    Major findByName(String name);
}
